import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import './assets/main.css'
// 引入element的图标
import {
  ArrowDown,
  Notebook,
  ArrowLeftBold,
  ArrowRightBold,
  FolderOpened,
  View,
  CopyDocument,
  Delete,
  Timer,
  Download,
} from '@element-plus/icons-vue'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
// 注册element-ui icon组件
app.component('ArrowDown', ArrowDown)
app.component('Notebook', Notebook)
app.component('ArrowLeftBold', ArrowLeftBold)
app.component('ArrowRightBold', ArrowRightBold)
app.component('FolderOpened', FolderOpened)
app.component('View', View)
app.component('CopyDocument', CopyDocument)
app.component('Delete', Delete)
app.component('Timer', Timer)
app.component('Download', Download)

app.mount('#app')
